import hyRequest from '@/service'

// 获取上级菜单数据
export const getParentQuestionList = (classifyType = 2) => {
  return hyRequest.get({
    url: `/classify/question//getClassifyParentList/${classifyType}`
  })
}

// 获取指定层级的下拉框数据
export const getClassifyTypeQuestion = (classifyType: number) => {
  return hyRequest.get({
    url: `/classify/question/getSelectFormat/${classifyType}`
  })
}

// 获取级联数据 -- 题目创编页面使用
export const getClassifyCascadeList = () => {
  return hyRequest.get({
    url: `/classify/question/getCascadeList`
  })
}
